package com.itheima.reggie.dao;

import com.itheima.reggie.entity.SetmealDish;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealDishDao {
    void batchSave(@Param("dishList") List<SetmealDish> setmealDishes);

    void delBySetmealIds(@Param("ids") List<Long> ids);

    @Select("select * from setmeal_dish where setmeal_id=#{setmealId}")
    List<SetmealDish> getSetmealDish(Long setmealId);
}
